An analog of String.Join(string, string[]) for List<T> or other generic enumerable
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2009-06-14T19:19:59Z
Indexed on
2010/04/17
13:53 UTC
Read the original article
Hit count: 264
class String
contains very useful method - String.Join(string, string[])
.
It creates a string from an array, separating each element of array with a symbol given. But general - it doesn't add a separator after the last element! I uses it for ASP.NET coding for separating with "<br />
" or Environment.NewLine
.
So I want to add an empty row after each row in asp:Table
. What method of IEnumerable<TableRow>
can I use for the same functionality?
© Stack Overflow or respective owner